<script lang="ts" setup>
import { ref, h, reactive, onMounted } from "vue";

interface MerchantInfo {
  merchantsName: string;
  taxNumber: string;
  address: string;
  contactPerson: string;
  contactPhone: string;
}

const merchantInfo = ref<MerchantInfo>({
  merchantsName: "杭州吾凡信息技术有限公司-测试",
  taxNumber: "91330113MAC3D2T45K",
  address: "浙江省杭州市临平区秦恺街道星海南路1190-8号1幢518室-1041",
  contactPerson: "张三",
  contactPhone: "13800138000"
});

</script>

<template>
  <div class="merchant-info-container">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>商户基本信息</span>
        </div>
      </template>
      <div class="info-content">
        <el-descriptions :column="2" border>
          <el-descriptions-item label="企业名称">
            {{ merchantInfo.merchantsName }}
          </el-descriptions-item>
          <el-descriptions-item label="纳税人识别号">
            {{ merchantInfo.taxNumber }}
          </el-descriptions-item>
          <el-descriptions-item label="企业注册地址">
            {{ merchantInfo.address }}
          </el-descriptions-item>
          <el-descriptions-item label="联系人">
            {{ merchantInfo.contactPerson }}
          </el-descriptions-item>
          <el-descriptions-item label="联系电话">
            {{ merchantInfo.contactPhone }}
          </el-descriptions-item>
        </el-descriptions>
      </div>
    </el-card>
  </div>
</template>

<style lang="scss" scoped>
.merchant-info-container {
  padding: 20px;
  
  .box-card {
    width: 100%;
    margin-bottom: 20px;
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .info-content {
      margin-top: 20px;
    }
  }
}
</style>